<extend name="Public/base" />
<block name="meta">
    <title>{$meta.ask_category_title}</title>
    <meta keywords="{$meta.ask_category_keyword}">
	<meta description="{$meta.ask_category_description}">
</block>
<block name="head_css">
	<link rel="stylesheet" href="__ASK__/css/more.pkg.css">
</block>
<block name="content">  
	<div class="g-bd">
        <div class="m-bnav">
        	<a href="{:U('Ask/index')}">装修问答</a> > 
	        <a href="{:U('Ask/article',array('pid'=>$nav_list['one']['ask_category_id']))}" >
	        {$nav_list['one']['ask_category_name']}</a> > 
	        <a href="{:U('Ask/article',array('pid'=>$nav_list['one']['ask_category_id'],'id'=>$nav_list['two']['ask_category_id']))}" >
	        {$nav_list['two']['ask_category_name']}</a>
        </div>
        <!-- 面包屑 -->
        <div class="m-content">
          <div class="column left">
            <div class="row mod-tab">
              <div class="mod-tab-hd">
                <ul class="clear">
                  <notempty name="class_list">
				  	  <volist name="class_list" id="vo" offset="0" length='7'>
	                  	<li <if condition="$Think.get.pid == $vo['ask_category_id']">class="on"</if>><a href="{:U('Ask/article',array('pid'=>$vo['ask_category_id']))}">{$vo.ask_category_name}</a></li>
	                  </volist>
                  </notempty>
                </ul>
              </div>
              <div class="mod-tab-bd">
                <div class="mod-tab-bditem">
	                <notempty name="two_class_list">
		                <volist name="two_class_list" id="vos">
		            		<a href="{:U('Ask/article',array('pid'=>(int)I('get.pid'),'id'=>$vos['ask_category_id']))}" 
		            		<if condition="I('get.id',0) == $vos['ask_category_id']">
		            		class="class-lnk class-lnk-on"
		            		<else/>
		            		class="class-lnk"
		            		</if>
		            		>{$vos.ask_category_name}</a>
		            	</volist>
	            	</notempty>
                </div>
              </div>
            </div>
            <div class="row-sort">
            </div>
            <div class="row row-1">
            
            <notempty name = 'article_list'>
            	<ul class="question-list">
		            <volist name='article_list' id='vo'>
			            <li>
		                  <p class="question-hd">
		                    <a href="{:U('Ask/detail',array('id'=>$vo['ask_article_id']))}">{$vo.ask_article_title|msubstr=###,0,40}</a>
		                  </p>
		                  <p class="question-bd">
		                    <span class="bd-left">已有<span class="b01">{$vo.ask_article_id|randGoodsFollowCount}</span>人浏览</span>
		                    <span class="bd-right">{$vo.create_time|time_format="Y-m-d H:i:s"}</span>
		                  </p>
		                </li>
					</volist>
				</ul>
			<else/>
           		<center>暂无对应文章</center>
            </notempty>
              <!-- 分页 -->
              <div class="page">
                {$_page}
              </div>
            </div>
          </div>
          <!-- 左侧结束 -->

          <div class="column right">
          	<notempty name="qa_list">
	            <div class="row ask">
	              <p>大家都在问</p>
	              <ul class="question">
	                <volist name="qa_list" id="vo">
	                	<li><a href="{:U('Ask/detail',array('id'=>$vo['ask_article_id']))}">{$vo.ask_article_title|htmlspecialchars|msubstr=###,0,16}</a></li>
	              	</volist>
	              </ul>
	            </div>
            </notempty>
            <div class="row ad-2" id="ad_3">
            </div>
          </div>
          <!-- 右侧结束 -->
      </div>
	</div>
</block>
<block name="foot_js">
	<script src="{:U('Ad/index',array('id'=>'3'))}"></script>
</block>